package com.suixinsanren.design.singleton.demo.demo02;

public class LazyStyleSingle {

    private static volatile LazyStyleSingle uniqueInstance;

    private LazyStyleSingle() {
    }

    public static LazyStyleSingle getUniqueInstance() {
        if (uniqueInstance == null) {
            synchronized (LazyStyleSingle.class) {
                if (uniqueInstance == null) {
                    uniqueInstance = new LazyStyleSingle();
                }
            }
        }
        return uniqueInstance;
    }
}
